package br.com.nooclix.ptt.ws.adapter.impl;

import java.lang.reflect.Type;
import java.util.List;

import br.com.nooclix.ptt.core.domain.product.curated.Result;
import br.com.nooclix.ptt.ws.adapter.AbstractAdapter;

import com.google.gson.reflect.TypeToken;

public class CuratedAdapter extends AbstractAdapter<Result> {

	
	public CuratedAdapter(){
		super(Result.class);
	}
	
	@Override
	public List<Result> listConvert(String json) {
		Type type = new TypeToken<List<Result>>() {
		}.getType();
		return getJsonEngine().fromJson(json, type);
	}

}
